<table class="table table-bordered" id="process-lists" data-toggle="datagrid" data-options="{
    tableWidth: '100%',
    height: '100%',
    gridTitle : '工艺字典列表',
    showToolbar: true,
    toolbarItem: 'add,del',
    local: 'local',
    dataUrl: '/admin/process/field-lists',
    paging: {pageSize:50, pageCurrent:5},
    linenumberAll: false,
    showLinenumber: false,
    showCheckboxcol: true,
    filterThead: false,
    showEditbtnscol: '操作',
    editUrl: '/admin/process/field-edit',
    delUrl:'/admin/process/field-delete',
    delConfirm: true,
}">
    <thead>
    <tr>
        <th data-options="{name:'field_name',align:'center'}">字段名称</th>
        <th data-options="{name:'title',align:'center'}">字段中文</th>
        <th data-options="{name:'field_type',items:{{$field_type_list}},align:'center'}">字段类型</th>
        <th data-options="{align:'center',width:200,render:permission_assignment}">类型设置</th>
    </tr>
    </thead>
</table>
<script type="text/javascript">

    function permission_assignment(value, data)
    {
        var html = '<button type="button" class="btn btn-info" data-toggle="navtab" data-options="{id:\'process_filed_set\',fresh:true, url:\'/admin/process/field-set\', title:\'字段类型设置\', data:{id:' + data.id + '}}"><i class="fa fa-sitemap"></i>点击设置</button>'
        return html
    }
</script>